/*
 * AbsurdityCondition.java
 *
 * Stateroom - Java framework library for finite state machines
 * Copyright (C) 2009 by Matthew Werny
 * All Rights Reserved
 *
 * This library is free software; you can redistribute it and/or
 * modify it under the terms of the GNU Lesser General Public
 * License as published by the Free Software Foundation; either
 * version 3 of the License, or (at your option) any later version.
 *
 * This library is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 * Lesser General Public License for more details.
 *
 * You should have received a copy of the GNU Lesser General Public
 * License along with this library; if not, write to the Free Software
 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
 */
package net.iceflow.stateroom.conditions;

import net.iceflow.stateroom.Context;
import net.iceflow.stateroom.interfaces.Condition;
import net.iceflow.stateroom.interfaces.Model;

/**
 * Condition that always evaluates to false.
 * @param <M> Type used to represent the machine model
 */
public class AbsurdityCondition<M extends Model> implements Condition<M> {

   /**
    * Indicates whether the condition is met.
    * <p>
    * This implementation always returns false.
    * </p>
    * @param context unused in this condition implementation
    * @return always returns false
    */
   @Override
   public boolean isMet(Context<M> context) {
      // Always return false
      return false;
   }
}
